package com.settlement.system.handler.xxljob;

import feign.Body;
import feign.Headers;
import feign.Param;
import feign.RequestLine;

import java.util.List;
import java.util.Map;

public interface XxlJobApi {
    @RequestLine("GET /jobinfo/info/{jobId}")
    ReturnT<XxlJobInfo> getInfo(@Param("jobId") String jobId);


    @RequestLine("POST /data/{omsReturnOrder}")
    @Headers({
            "Content-Type: application/json",
    })
    ReturnT<XxlJobInfo> apiPost(@Param("omsReturnOrder") Integer omsReturnOrder, List<Map<String, String>> data);

    @RequestLine("POST /fixOrderData")
    @Headers({
            "Content-Type: application/json",
    })
    ReturnT<XxlJobInfo> fixOrderData(List<Map<String, String>> data);
}
